Integrand size = 25, antiderivative size = 95 \[ \int \frac {\tan ^5(e+f x)}{\sqrt {a+b \tan ^2(e+f x)}} \, dx=-\frac {\text {arctanh}\left (\frac {\sqrt {a+b \tan ^2(e+f x)}}{\sqrt {a-b}}\right )}{\sqrt {a-b} f}-\frac {(a+b) \sqrt {a+b \tan ^2(e+f x)}}{b^2 f}+\frac {\left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 b^2 f} \]
-arctanh((a+b*tan(f*x+e)^2)^(1/2)/(a-b)^(1/2))/f/(a-b)^(1/2)-(a+b)*(a+b*ta n(f*x+e)^2)^(1/2)/b^2/f+1/3*(a+b*tan(f*x+e)^2)^(3/2)/b^2/f
Time = 2.63 (sec) , antiderivative size = 87, normalized size of antiderivative = 0.92 \[ \int \frac {\tan ^5(e+f x)}{\sqrt {a+b \tan ^2(e+f x)}} \, dx=-\frac {\frac {2 \text {arctanh}\left (\frac {\sqrt {a+b \tan ^2(e+f x)}}{\sqrt {a-b}}\right )}{\sqrt {a-b}}+\frac {2 \left (2 a+3 b-b \tan ^2(e+f x)\right ) \sqrt {a+b \tan ^2(e+f x)}}{3 b^2}}{2 f} \]
-1/2*((2*ArcTanh[Sqrt[a + b*Tan[e + f*x]^2]/Sqrt[a - b]])/Sqrt[a - b] + (2 *(2*a + 3*b - b*Tan[e + f*x]^2)*Sqrt[a + b*Tan[e + f*x]^2])/(3*b^2))/f
Time = 0.32 (sec) , antiderivative size = 93, normalized size of antiderivative = 0.98, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3042, 4153, 354, 99, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\tan ^5(e+f x)}{\sqrt {a+b \tan ^2(e+f x)}} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {\tan (e+f x)^5}{\sqrt {a+b \tan (e+f x)^2}}dx\) |
\(\Big \downarrow \) 4153 |
\(\displaystyle \frac {\int \frac {\tan ^5(e+f x)}{\left (\tan ^2(e+f x)+1\right ) \sqrt {b \tan ^2(e+f x)+a}}d\tan (e+f x)}{f}\) |
\(\Big \downarrow \) 354 |
\(\displaystyle \frac {\int \frac {\tan ^4(e+f x)}{\left (\tan ^2(e+f x)+1\right ) \sqrt {b \tan ^2(e+f x)+a}}d\tan ^2(e+f x)}{2 f}\) |
\(\Big \downarrow \) 99 |
\(\displaystyle \frac {\int \left (\frac {-a-b}{b \sqrt {b \tan ^2(e+f x)+a}}+\frac {\sqrt {b \tan ^2(e+f x)+a}}{b}+\frac {1}{\left (\tan ^2(e+f x)+1\right ) \sqrt {b \tan ^2(e+f x)+a}}\right )d\tan ^2(e+f x)}{2 f}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {-\frac {2 \text {arctanh}\left (\frac {\sqrt {a+b \tan ^2(e+f x)}}{\sqrt {a-b}}\right )}{\sqrt {a-b}}+\frac {2 \left (a+b \tan ^2(e+f x)\right )^{3/2}}{3 b^2}-\frac {2 (a+b) \sqrt {a+b \tan ^2(e+f x)}}{b^2}}{2 f}\) |
((-2*ArcTanh[Sqrt[a + b*Tan[e + f*x]^2]/Sqrt[a - b]])/Sqrt[a - b] - (2*(a + b)*Sqrt[a + b*Tan[e + f*x]^2])/b^2 + (2*(a + b*Tan[e + f*x]^2)^(3/2))/(3 *b^2))/(2*f)
3.4.20.3.1 Defintions of rubi rules used
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_) )^(p_), x_] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*x)^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, p}, x] && IntegersQ[m, n] && (IntegerQ[p] | | (GtQ[m, 0] && GeQ[n, -1]))
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2)^(q_.), x_S ymbol] :> Simp[1/2 Subst[Int[x^((m - 1)/2)*(a + b*x)^p*(c + d*x)^q, x], x , x^2], x] /; FreeQ[{a, b, c, d, p, q}, x] && NeQ[b*c - a*d, 0] && IntegerQ [(m - 1)/2]
Int[((d_.)*tan[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*((c_.)*tan[(e_.) + (f_.)*(x_)])^(n_))^(p_.), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Simp[c*(ff/f) Subst[Int[(d*ff*(x/c))^m*((a + b*(ff*x)^n)^p/(c^2 + f f^2*x^2)), x], x, c*(Tan[e + f*x]/ff)], x]] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && (IGtQ[p, 0] || EqQ[n, 2] || EqQ[n, 4] || (IntegerQ[p] && Ratio nalQ[n]))
Time = 0.07 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.08
method | result | size |
derivativedivides | \(\frac {\frac {\tan \left (f x +e \right )^{2} \sqrt {a +b \tan \left (f x +e \right )^{2}}}{3 b}-\frac {2 a \sqrt {a +b \tan \left (f x +e \right )^{2}}}{3 b^{2}}-\frac {\sqrt {a +b \tan \left (f x +e \right )^{2}}}{b}+\frac {\arctan \left (\frac {\sqrt {a +b \tan \left (f x +e \right )^{2}}}{\sqrt {-a +b}}\right )}{\sqrt {-a +b}}}{f}\) | \(103\) |
default | \(\frac {\frac {\tan \left (f x +e \right )^{2} \sqrt {a +b \tan \left (f x +e \right )^{2}}}{3 b}-\frac {2 a \sqrt {a +b \tan \left (f x +e \right )^{2}}}{3 b^{2}}-\frac {\sqrt {a +b \tan \left (f x +e \right )^{2}}}{b}+\frac {\arctan \left (\frac {\sqrt {a +b \tan \left (f x +e \right )^{2}}}{\sqrt {-a +b}}\right )}{\sqrt {-a +b}}}{f}\) | \(103\) |
1/f*(1/3*tan(f*x+e)^2/b*(a+b*tan(f*x+e)^2)^(1/2)-2/3*a/b^2*(a+b*tan(f*x+e) ^2)^(1/2)-1/b*(a+b*tan(f*x+e)^2)^(1/2)+1/(-a+b)^(1/2)*arctan((a+b*tan(f*x+ e)^2)^(1/2)/(-a+b)^(1/2)))
Time = 0.33 (sec) , antiderivative size = 314, normalized size of antiderivative = 3.31 \[ \int \frac {\tan ^5(e+f x)}{\sqrt {a+b \tan ^2(e+f x)}} \, dx=\left [\frac {3 \, \sqrt {a - b} b^{2} \log \left (-\frac {b^{2} \tan \left (f x + e\right )^{4} + 2 \, {\left (4 \, a b - 3 \, b^{2}\right )} \tan \left (f x + e\right )^{2} - 4 \, {\left (b \tan \left (f x + e\right )^{2} + 2 \, a - b\right )} \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {a - b} + 8 \, a^{2} - 8 \, a b + b^{2}}{\tan \left (f x + e\right )^{4} + 2 \, \tan \left (f x + e\right )^{2} + 1}\right ) + 4 \, {\left ({\left (a b - b^{2}\right )} \tan \left (f x + e\right )^{2} - 2 \, a^{2} - a b + 3 \, b^{2}\right )} \sqrt {b \tan \left (f x + e\right )^{2} + a}}{12 \, {\left (a b^{2} - b^{3}\right )} f}, \frac {3 \, \sqrt {-a + b} b^{2} \arctan \left (\frac {2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {-a + b}}{b \tan \left (f x + e\right )^{2} + 2 \, a - b}\right ) + 2 \, {\left ({\left (a b - b^{2}\right )} \tan \left (f x + e\right )^{2} - 2 \, a^{2} - a b + 3 \, b^{2}\right )} \sqrt {b \tan \left (f x + e\right )^{2} + a}}{6 \, {\left (a b^{2} - b^{3}\right )} f}\right ] \]
[1/12*(3*sqrt(a - b)*b^2*log(-(b^2*tan(f*x + e)^4 + 2*(4*a*b - 3*b^2)*tan( f*x + e)^2 - 4*(b*tan(f*x + e)^2 + 2*a - b)*sqrt(b*tan(f*x + e)^2 + a)*sqr t(a - b) + 8*a^2 - 8*a*b + b^2)/(tan(f*x + e)^4 + 2*tan(f*x + e)^2 + 1)) + 4*((a*b - b^2)*tan(f*x + e)^2 - 2*a^2 - a*b + 3*b^2)*sqrt(b*tan(f*x + e)^ 2 + a))/((a*b^2 - b^3)*f), 1/6*(3*sqrt(-a + b)*b^2*arctan(2*sqrt(b*tan(f*x + e)^2 + a)*sqrt(-a + b)/(b*tan(f*x + e)^2 + 2*a - b)) + 2*((a*b - b^2)*t an(f*x + e)^2 - 2*a^2 - a*b + 3*b^2)*sqrt(b*tan(f*x + e)^2 + a))/((a*b^2 - b^3)*f)]
\[ \int \frac {\tan ^5(e+f x)}{\sqrt {a+b \tan ^2(e+f x)}} \, dx=\int \frac {\tan ^{5}{\left (e + f x \right )}}{\sqrt {a + b \tan ^{2}{\left (e + f x \right )}}}\, dx \]
\[ \int \frac {\tan ^5(e+f x)}{\sqrt {a+b \tan ^2(e+f x)}} \, dx=\int { \frac {\tan \left (f x + e\right )^{5}}{\sqrt {b \tan \left (f x + e\right )^{2} + a}} \,d x } \]
Timed out. \[ \int \frac {\tan ^5(e+f x)}{\sqrt {a+b \tan ^2(e+f x)}} \, dx=\text {Timed out} \]
Time = 12.63 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.02 \[ \int \frac {\tan ^5(e+f x)}{\sqrt {a+b \tan ^2(e+f x)}} \, dx=\frac {{\left (b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a\right )}^{3/2}}{3\,b^2\,f}-\frac {\mathrm {atanh}\left (\frac {\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a}}{\sqrt {a-b}}\right )}{f\,\sqrt {a-b}}-\left (\frac {2\,a}{b^2\,f}-\frac {a-b}{b^2\,f}\right )\,\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a} \]